<form action="" class="form-horizontal" data-toggle="validator" id="add-form" method="POST" role="form">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">公司名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input class="form-control" data-rule="required" name="row[company_name]" placeholder="公司名称"
                   type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">公司编号:</label>
        <div class="col-xs-12 col-sm-8">
            <input class="form-control" data-rule="required" name="row[company_code]" minlength="6" placeholder="请输入公司编号"
                   type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">状态:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[is_open]', [1=>'开启', 0=>'关闭'],1)}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button class="btn btn-success btn-embossed " type="submit">{:__('OK')}</button>
            <button class="btn btn-default btn-embossed" type="reset">{:__('Reset')}</button>
        </div>
    </div>
</form>